// 引入样式
import './style/style1.css'
import './style/style2.less'

// 引入js
import { sum } from './utils/math'
const sumRes = sum(10, 20)
console.log(sumRes)

// 引入图片，插入body中
import imgFile1 from './img/1.jpeg'
import imgFile2 from './img/2.jpeg'
function insertImage(imgFile) {
  const img = new Image()
  img.src = imgFile
  document.body.appendChild(img)
}
insertImage(imgFile1)
insertImage(imgFile2)

// 输出环境变量(webpack配置的)
console.log('window.ENV', ENV)
